export default [
  { path: '/user', layout: false, routes: [
      { path: '/user/login', component: './User/Login' },
      { path: '/user/register', component: './User/Register' }
    ]
  },
  {
    path: '/front',
    layout: false,
    routes: [
      {
        path: '/front/home',
        component: './Front/HomePage'
      }
    ]
  },
  {
    path: '/welcome',
    icon: 'smile',
    component: './Welcome',
    menu: {
      name: '欢迎页'
    }
  },
  {
    path: '/test',
    icon: 'smile',
    component: './Test',
    menu: {
      name: '测试页'
    }
  },
  {
    path: '/admin',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { path: '/admin', redirect: '/admin/sub-page'},
      { path: '/admin/sub-page', component: './Admin', menu: {name: '管理页'} },
    ],
  },
  {
    icon: 'FileOutlined',
    path: '/questionTypeList',
    component: './QuestionTableList',
    menu: {
      name: '題目管理'
    }
  },
  {
    icon: 'FileTextOutlined',
    path: '/questionList',
    component: './QuestionTypeTableList',
    menu: {
      name: '题型管理'
    }
  },
  {
    icon: 'FileTextOutlined',
    path: '/examList',
    component: './ExamTableList',
    menu: {
      name: '试卷管理'
    }
  },
  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
];
